Cosmos DB (1 / 62): You are developing an application with a read-heavy workload using Azure Cosmos DB. Which of the following practices could help improve performance?
Answer:
Utilizing PartitionKey for point read can reduce Request Unit (RU) charges and enhance performance, particularly for read-heavy workloads, while employing FeedIterator can improve performance when handling multiple pages of query results, a common scenario in read-heavy workloads.
Setting EnableContentResponseOnWrite to false can improve performance for write-heavy workloads, but it doesn't directly optimize read-heavy workloads.
Increasing the size of your documents can actually increase the Request Unit (RU) charge and potentially lead to more errors, so it's not a good practice for optimizing performance.